#include<stdio.h>
	int main(void)
	{  
	  /*********Begin*********/
	  int x, a, b, c;
      scanf("%d", &x);
	  a = x / 100;
      b = x % 100 / 10;
      c = x % 10;
      printf("%d %d %d", a, b, c);
	  /*********End**********/ 
       return 0;
	}
